/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package queryOpt;

import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 *
 * @author fredzgw
 */
public class FileOutput {
static BufferedWriter out;
public static void set(String filename) throws Exception
    {
        out=new  BufferedWriter(new FileWriter(filename));
    }
public static void close() throws Exception
{
    out.close();
}
public static void write(String s) throws Exception
{
    out.write(s);
}
public static void newline() throws Exception
{   out.newLine();
}
}
